package com.kylin.dal.entity.user;

import com.kylin.shared.common.entity.BaseEntry;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 用户基础信息数据项
 * @author Damon S.
 * @version v1.0.1
 * @date 2019年11月03日 21:46
 */
@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_user_main", catalog = "db_kylin_artwork")
public final class UserMainEntry extends BaseEntry implements Serializable {
    @Id
    @Column private Long id;

    @Column(name = "display_name", length = 64)
    private String displayName;

    @Column(columnDefinition = "BIT")
    private Integer state;

    @Column(columnDefinition = "BIT")
    private Integer removed;

    @Column(name = "created_by")
    private Long createdBy;

    @Column(name = "updated_by")
    private Long updatedBy;

    @Column(name = "removed_by")
    private Long removedBy;

    @Column(name = "created_at")
    private Long createdAt;

    @Column(name = "updated_at")
    private Long updatedAt;

    @Column(name = "removed_at")
    private Long removedAt;
}
